import { Inject } from '@midwayjs/core';
import { CoolController, BaseController } from '@cool-midway/core';
import { AppointmentSalesEntity } from '../../entity/sales';
import { AppointmentSalesService } from '../../service/sales';

/**
 * 销售信息
 */
@CoolController({
  api: ['add', 'delete', 'update', 'info', 'list', 'page'],
  entity: AppointmentSalesEntity,
  service: AppointmentSalesService,
  pageQueryOp: {
    keyWordLikeFields: ['a.name', 'a.code'],
    fieldEq: ['a.status', 'a.type'],
  },
})
export class AdminAppointmentSalesController extends BaseController {
  @Inject()
  appointmentSalesService: AppointmentSalesService;
}
